<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="html" uri="struts-html"%>
<div id="pagina-principal">
<h2 class="tituloA">Logueo de Usuarios</h2>
	<html:form styleId="loginForm" action="login">
		<div class="campo">
			<label>Usuario:</label>
			<html:text property="usu" styleClass="inputP" value="admin" name="usu"/>
			<html:errors property="usu" />
		</div>
		<div class="campo">
			<label>Clave:</label>
			<html:password property="pas" styleClass="inputP" value="admin" name="pas"/>
			<html:errors property="pas" />
		</div>
		<div align="center">
			<a href="#" id="ingresar" class="btn">Ingresar</a>
			<div class="clear"></div>
		</div>
	</html:form>		
</div>
<script type="text/javascript">
$(function(){
	var ing = $('#ingresar');
	ing.click(function(e){
		e.preventDefault();
		$('#loginForm').submit();
	});

});
</script>